<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>烟花效果展示</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <canvas id="fireworks"></canvas>
    <div class="controls">
        <button id="launchBtn">发射烟花</button>
        <div class="options">
            <label>
                <input type="checkbox" id="autoLaunch" checked> 自动发射
            </label>
            <div class="color-options">
                <span>颜色:</span>
                <button class="color-btn" data-color="random" style="background: linear-gradient(to right, red, orange, yellow, green, blue, purple);">随机</button>
                <button class="color-btn" data-color="red" style="background-color: red;"></button>
                <button class="color-btn" data-color="blue" style="background-color: blue;"></button>
                <button class="color-btn" data-color="green" style="background-color: green;"></button>
                <button class="color-btn" data-color="gold" style="background-color: gold;"></button>
            </div>
        </div>
    </div>

    <script src="js/fireworks.js"></script>
</body>
</html> 